// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'TraceabilityId',
        footer: "Foots",
        cnName: '产品溯源',
        name: 'Traceability',
        url: "/Traceability/",
        sortName: "TraceabilityId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductCode":"","ProductSequence":"","MaterialCode":"","MaterialBatch":"","BOMCode":"","ProducSpecifications":"","CreatePerson":"","CreateTime":""};
    const editFormOptions = [[{"title":"产品编码","required":true,"field":"ProductCode","type":"text"}],
                              [{"title":"产品序列码","required":true,"field":"ProductSequence","type":"text"}],
                              [{"dataKey":"物料编码—领取","data":[],"title":"物料编码","required":true,"field":"MaterialCode","type":"select"}],
                              [{"dataKey":"批次—物料领取","data":[],"title":"物料批次","required":true,"field":"MaterialBatch","type":"select"}],
                              [{"dataKey":"BOM编码","data":[],"title":"BOM编码","required":true,"field":"BOMCode","type":"select"}],
                              [{"title":"产品规格","required":true,"field":"ProducSpecifications","type":"text"}],
                              [{"dataKey":"产品溯源—添加人","data":[],"title":"添加人","field":"CreatePerson","type":"select"}],
                              [{"title":"添加时间","required":true,"field":"CreateTime","type":"date"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'TraceabilityId',title:'主键ID',type:'int',sort:true,width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductCode',title:'产品编码',type:'string',width:120,require:true,align:'left'},
                       {field:'ProductSequence',title:'产品序列码',type:'string',width:120,require:true,align:'left'},
                       {field:'MaterialCode',title:'物料编码',type:'string',bind:{ key:'物料编码—领取',data:[]},width:120,require:true,align:'left'},
                       {field:'MaterialBatch',title:'物料批次',type:'string',bind:{ key:'批次—物料领取',data:[]},width:120,require:true,align:'left'},
                       {field:'BOMCode',title:'BOM编码',type:'string',bind:{ key:'BOM编码',data:[]},width:120,require:true,align:'left'},
                       {field:'ProducSpecifications',title:'产品规格',type:'string',width:120,require:true,align:'left'},
                       {field:'CreatePerson',title:'添加人',type:'int',bind:{ key:'产品溯源—添加人',data:[]},width:110,align:'left'},
                       {field:'CreateTime',title:'添加时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}